package com.zmn.plat.persistence.interfaces.msg.receive.role.conf;

import com.zmn.plat.model.entity.msg.receive.role.conf.MsgReceiveRoleConf;
import com.zmn.plat.model.entity.msg.receive.role.conf.MsgReceiveRoleConfQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;



/**
 * 消息配置-接收信息角色配置表
 * 
 * @author linfeng
 *
 * @since 2020-05-18 14:50:14
 */
public interface MsgReceiveRoleConfDao {

    /**
     * 查询
     * @param msgId ID
     * @return
     */
    MsgReceiveRoleConf findByKey(Integer msgId);

    /**
     * 分页搜索
     * @param query 条件
     * @return 列表
     */
    List<MsgReceiveRoleConf> listPageByQuery(MsgReceiveRoleConfQuery query);

    /**
     * 搜索
     * @param query 条件
     * @return
     */
    List<MsgReceiveRoleConf> listByQuery(MsgReceiveRoleConfQuery query);

    /**
     * 所有数据
     * @return
     */
    List<MsgReceiveRoleConf> listAll();

    /**
     * 统计
     * @param query 条件
     * @return
     */
    Integer countByQuery(MsgReceiveRoleConfQuery query);
    /**
     * 更新
     * @param msgReceiveRoleConf
     * @return
     */
    Integer updateByKey(MsgReceiveRoleConf msgReceiveRoleConf);

    /**
     * 插入
     * @param msgReceiveRoleConf
     * @return
     */
    Integer insert(MsgReceiveRoleConf msgReceiveRoleConf);

    /**
     * 批量插入
     *
     * @param msgReceiveRoleConfs
     * @return
     */
    Integer insertBatch(List<MsgReceiveRoleConf> msgReceiveRoleConfs);

    /**
     * 删除
     * @param msgId ID
     * @return
     */
    Integer deleteByKey(Integer msgId);

    /**
     * 根据消息ID删除接收信息角色数据
     * @param msgId
     * @return
     */
    Integer deleteByMsgId(Integer msgId);
}
